package com.ibook.dao;

import com.ibook.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    Integer selectByUserIden(String userIden);

    User selectByUserIdAndPassword(@Param("userId") int userId,@Param("password") String password);

    void updateStatus(@Param("status")Boolean status,@Param("userId")int userId);
}